<!DOCTYPE HTML>
<html>
<head>
    <title>赣南脐橙</title>
    <meta name="renderer" content="webkit">
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="applicable-device" content="pc,mobile">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="description" content=""/>
    <meta name="keywords" content="赣南脐橙"/>
    <link rel='stylesheet' href='./static/css/style.css'>
</head>
<body>
<!--[if lte IE 8]>
<div class="text-center padding-top-50 padding-bottom-50 bg-blue-grey-100">
    <p class="browserupgrade font-size-18">你正在使用一个<strong>过时</strong>的浏览器。请<a href="http://browsehappy.com/"
                                                                              target="_blank">升级您的浏览器</a>，以提高您的体验。</p>
</div>
<![endif]-->
<div class="load-box"></div>
<header>
    <div class="head-box">
        <div class="width-box">
            <div class="logo-box">
                <a href="" title="赣南脐橙">

                    <img src="./static/image/logo.jpg" alt="赣南脐橙">

                    <h2>赣南脐橙</h2>


                </a>
            </div>

            <div class="login-box">
                <a href="login.html">登录</a>
                <a href="register.html">注册</a>
            </div>

        </div>
    </div>
</header>
<nav>
    <div class="nav-box">
        <div class="width-box">
            <div class="nav-cut">
                <ul class="nav-ul">

                    <li class="nav-li "><a href="index.html" title="赣南脐橙">首页</a></li>

                    <li class="nav-li active navs margin-left-"><a href="you.html" title="产品展示">产品展示</a></li>


                    <li class="nav-li  navs margin-left-"><a href="gonglue.html" title="用户反馈">用户反馈</a></li>
                </ul>
            </div>

            <div class="search-cut">
                <div class="search-button"></div>
                <div class="search-box">


                </div>
            </div>
        </div>
    </div>
</nav>

<section class="main">

</section>
<footer>
    <div class="foot-box">
        <div class="width-box">
            <div class="foot-left">

                <div class="met-links">
                    <ol class="breadcrumb">
                        <li>友情链接 :</li>


                    </ol>
                </div>

                <p>企业网站管理系统</p>

            </div>
            <div class="foot-right">
                <div class="foot-lang">

                </div>
                <div class="powered_by_metinfo">Powered&nbsp;by&nbsp;<a href="" target="_blank"
                                                                        title="企业网站管理系统">breeze</a>&nbsp;
                </div>
            </div>
        </div>
    </div>
</footer>

<div class="weixin-box">
    <b><em>X</em>分享到微信朋友圈</b>
    <i></i>
    <p>打开微信，使用“扫一扫”，点击右上角“分享到朋友圈”。</p>
</div>

<button type="button" class="btn btn-icon btn-primary btn-squared met-scroll-top hide"><i class="icon wb-chevron-up"
                                                                                          aria-hidden="true"></i>
</button>


<script src="./static/js/shop_lang_cn.js"></script>

<script src="./static/js/style.js"></script>

<script src="./static/js/shop_v3.js"></script>
<!--<script src="static/js/link.js"/>-->
<script type="text/javascript">
    $(document).ready(function (e) {
        getLink()

        var id = getUrlParam("id");
        console.log(id)
        $.ajax({
            url: "/getDetails?id=" + id,
            type: "get",
            // data: JSON.stringify({
            //     pageSize: 10,
            //     pageNum: 1
            // }),
            contentType: "application/json;charset=UTF-8",
            dataType: "json",
            success: function (data) {
                if (data.code == 200) {
                    $(".main width-box").remove()
                    var text = data.data
                    var details = "  <div class=\"width-box\">\n" +
                        "\t<div class=\"main\">\n" +
                        "      <div class=\"card-list\">\n" +
                        "        <div class=\"card-title\">" + text.title + "</div>\n" +
                        "\t\t<div class=\"card-operation\">\n" +
                        "\t\t  <div class=\"card-author\">\n" +
                        "            <img src=\"./static/image/user.jpg\">\n" +
                        "            <font>admin</font>\n" +
                        "\t\t  </div>\n" +
                        "\t\t  <div class=\"card-time\">发布于 " + text.createTime + "</div>\n" +
                        "\t\t  <div class=\"card-geek\">\n" +
                        "\t\t\t<font class=\"eye\">" + text.readSize + "</font>\n" +
                        "\t\t\t<font class=\"share\">&nbsp;\n" +
                        "\t\t\t  <span>\n" +
                        "\t\t\t\t <a class=\"weibo\" target=\"_blank\" href=\"http://service.weibo.com/share/share.php?title=2017海南三亚旅游攻略实用版&url=https%3A%2F%2Fshow.breeze.cn%3A443%2Fmuban%2FM1156012%2F359%2Fstrategy%2Fshownews.php%3Flang%3Dcn%26id%3D54\"></a>\n" +
                        "\t\t\t\t <a class=\"weixin\" data-href=\"https://breeze.cn:443/muban/M1156012/359/strategy/shownews.php?lang=cn&id=54\"></a>\n" +
                        "\t\t\t\t <a class=\"qzone\" target=\"_blank\" href=\"https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?summary=2017海南三亚旅游攻略实用版&url=https%3A%2F%2Fbreeze.cn%3A443%2Fmuban%2FM1156012%2F359%2Fstrategy%2Fshownews.php%3Flang%3Dcn%26id%3D54\"></a>\n" +
                        "\t\t\t  </span>\n" +
                        "\t\t\t</font>\n" +
                        "\t\t  </div>\n" +
                        "\t\t</div>\n" +
                        "\t\t<div class=\"met-editor lazyload clearfix\">\n" +
                        "\t\t  <div>\n" +
                        "            " + text.details + "\n" +
                        "          </div>\n" +
                        "\n" +
                        "\t\t</div>\n" +
                        "\n" +
                        "      </div>\n" +
                        "    </div>\n" +
                        "  </div>"
                    $(".main").append(details)
                }
            }
        })
    })

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return unescape(r[2]);
        return null; //返回参数值
    }

    function getLink(){
        $.ajax({
            url: "/getUrlList",
            type: "get",
            // data: JSON.stringify({
            //     pageSize: 10,
            //     pageNum: 1
            // }),
            contentType: "application/json;charset=UTF-8",
            dataType: "json",
            success: function (data) {
                if (data.code == 200) {


                    console.log(data)
                    $(".breadcrumb li").remove();
                    var li = '<li>友情链接 :</li>'
                    var list = data.data
                    for (var i = 0; i < list.length; i++) {

                        li += "<li>\n" +
                            "                            <a href=\"" + list[i].link + "\" title=\"\" target=\"_blank\">\n" +
                            "\n" +
                            "                                " + list[i].linkName + "\n" +
                            "\n" +
                            "                            </a>\n" +
                            "                        </li>"
                    }
                    $(".breadcrumb").append(li)
                }
            }

        })
    }
</script>
</body>
</html>